<?php

namespace App\Http\Criteria;

use App\Repository\Criteria;
use App\Repository\Constracts\RepositoryInterface as Repository;

class IsDefaultCriteria extends Criteria
{

    public function apply($model, Repository $repository)
    {
        return $model->where('is_default', 1);
    }

}
